const install = (Vue, vm) => {
	// 公共部分
	let setting = (params) => vm.$u.post('setting', params);
	let upload = (params) => vm.$u.post('upload', params); //上传图片
	// let smsSend = (params) => vm.$u.get('system/user/sendAuthCode/'+params.phone); //发送验证码
    
	let configinit = (params) => vm.$u.post('index/init', params);//公告配置
    let login = (params) => vm.$u.post('user/login', params);//登录
	let mobilelogin = (params) => vm.$u.post('user/mobilelogin', params);//登录-短信验证码
	let register = (params) => vm.$u.post('user/register', params);//注册
	let usergetData = (params) => vm.$u.post('user/getData', params);//用户信息
	
	let smsSend = (params) => vm.$u.post('sms/send', params);//验证码

	// 首页开始
	let getBanner = (params) => vm.$u.post('index/getBanner', params);//首页banner
	let getNotice = (params) => vm.$u.post('index/getNotice', params);//首页公告
	let getNoticeInfo = (params) => vm.$u.post('index/getNoticeInfo', params);//首页详情
	let getMenu = (params) => vm.$u.post('index/getMenu', params);//首页菜单
	let getListParams = (params) => vm.$u.post('task/getListParams', params);//首页参数
	let getLists = (params) => vm.$u.post('task/getLists', params);//首页列表
	let getDetail = (params) => vm.$u.post('task/getDetail', params);//任务详情
	let getApplyParams = (params) => vm.$u.post('task/getApplyParams', params);//获取申请参数
	let doApply = (params) => vm.$u.post('task/doApply', params);//获取任务详情-提交申请
	let taskgetInit = (params) => vm.$u.post('task/getInit', params);//获取悬赏配置
	let taskadd = (params) => vm.$u.post('task/add', params);//获取悬赏发布
	let taskgetCate = (params) => vm.$u.post('task/getCate', params);//获取悬赏类型
	// getListsIndex
	let getListsIndex = (params) => vm.$u.post('task/getListsIndex', params);//首页列表-新接口
	// 首页结束

	// 项目开始
	let quangetBanner = (params) => vm.$u.post('quan/getBanner', params);//获取项目banner
	let quangetListParams = (params) => vm.$u.post('quan/getListParams', params);//获取项目列表参数
	let quangetLists = (params) => vm.$u.post('quan/getLists', params);//获取项目列表
	let quangetDetail = (params) => vm.$u.post('quan/getDetail', params);//获取项目详情
	let quangetApplyParams = (params) => vm.$u.post('quan/getApplyParams', params);//获取项目提交参数
	let quandoApply = (params) => vm.$u.post('quan/doApply', params);//获取项目提交
	let quangetInit = (params) => vm.$u.post('quan/getInit', params);//获取项目配置
	
	
	// 项目结束

	// 名片开始
	
	let cardgetListParams = (params) => vm.$u.post('card/getListParams', params);//获取名片参数

	let cardgetCate = (params) => vm.$u.post('card/getCate', params);//发布名片类型
	let cardadd = (params) => vm.$u.post('card/add', params);//发布名片

	let quangetCate = (params) => vm.$u.post('quan/getCate', params);//发布项目-获取项目类型
	let quangetPostion = (params) => vm.$u.post('quan/getPostion', params);//发布项目-获取位置类型
	let quanadd = (params) => vm.$u.post('quan/add', params);//发布项目-发布
	let cardgetInit = (params) => vm.$u.post('card/getInit', params);//名片配置
	
	
	// 名片结束
	// 我的页面模块接口
	let getMoneyLog = (params) => vm.$u.post('user/getMoneyLog', params);//收益明细
	let getAccountList = (params) => vm.$u.post('user/getAccountList', params);//用户提现参数
	let tigetContent = (params) => vm.$u.post('index/getContent', params);//用户提现温馨提示
	let getWithdrawList = (params) => vm.$u.post('user/getWithdrawList', params);//用户提现记录
	let getMyInvite = (params) => vm.$u.post('user/getMyInvite', params);//用户邀请
	let getMyTeamData = (params) => vm.$u.post('user/getMyTeamData', params);//团队参数
	let getMyTeamList = (params) => vm.$u.post('user/getMyTeamList', params);//团队列表
	let getRankList = (params) => vm.$u.post('user/getRankList', params);//获取排名
	let addFankui = (params) => vm.$u.post('user/addFankui', params);//提交反馈
	let getFankuiList = (params) => vm.$u.post('user/getFankuiList', params);//提交反馈列表
	let getTuiguangList = (params) => vm.$u.post('user/getTuiguangList', params);//获取推广奖励
	let getFengHongTask = (params) => vm.$u.post('user/getFengHongTask', params);//获取裂变奖励
	
	let qdgetInti = (params) => vm.$u.post('activity/getInti', params);//获取抽奖参数
	let payActivity = (params) => vm.$u.post('activity/payActivity', params);//获取抽奖支付金额
	let sign = (params) => vm.$u.post('activity/sign', params);//签到
	let qdgetLog = (params) => vm.$u.post('activity/getLog', params);//获取中奖名单
	let getPayLog = (params) => vm.$u.post('activity/getPayLog', params);//获取支付记录
	let getOrderList = (params) => vm.$u.post('order/getOrderList', params);//获取订单列表
	let getOrderByTeam = (params) => vm.$u.post('order/getOrderByTeam', params);//获取团队列表
	let getContent = (params) => vm.$u.post('index/getContent', params);//获取团队富文本
	let getOrderImage = (params) => vm.$u.post('order/getOrderImage', params);//获取订单图
	let getVipList = (params) => vm.$u.post('user/getVipList', params);//领取会员权益列表
	let getBaoMing = (params) => vm.$u.post('card/getBaoMing', params);//报名列表
	let getCateList = (params) => vm.$u.post('card/getCateList', params);//开始赚钱-获取任务类型
	let getCartInfo = (params) => vm.$u.post('card/getCardInfo', params);//开始赚钱-获取任务详情
	let getTaskId = (params) => vm.$u.post('card/getTaskId', params);//开始赚钱-点击开始赚钱
	let doTask = (params) => vm.$u.post('card/doTask', params);//开始赚钱-提交任务
	let addOrder = (params) => vm.$u.post('recharge/addOrder', params);//添加充值订单

	let getShopInfo = (params) => vm.$u.post('main/getShopInfo', params);//获取个人信息
	let maingetMenu = (params) => vm.$u.post('main/getMenu', params);//获取菜单
	let maingetList = (params) => vm.$u.post('main/getList', params);//审核列表
	let doAdd = (params) => vm.$u.post('main/doAdd', params);//增加名额
	let doRefresh = (params) => vm.$u.post('main/doRefresh', params);//刷新
	let doTop = (params) => vm.$u.post('main/doTop', params);//置顶
	let doDown = (params) => vm.$u.post('main/doDown', params);//下架
	let doUp = (params) => vm.$u.post('main/doUp', params);//上架
	let doRefund = (params) => vm.$u.post('main/doRefund', params);//退款
	
	let activitymsg = (params) => vm.$u.post('activity/getMsg', params);//获取支付记录
	let baoaddOrder = (params) => vm.$u.post('order/addOrder', params);//我的报名提交
	let getOrderImageParams = (params) => vm.$u.post('order/getOrderImageParams', params);//我的报名获取参数
	
	let applySite = (params) => vm.$u.post('user/applySite', params);//分站申请
	let getApplySiteList = (params) => vm.$u.post('user/getApplySiteList', params);//分站列表

	let editNickname = (params) => vm.$u.post('user/editNickname', params);//修改昵称
	let resetpwd = (params) => vm.$u.post('user/resetpwd', params);//修改登录密码
	let editZfb = (params) => vm.$u.post('user/editZfb', params);//绑定支付宝账号
	let editBank = (params) => vm.$u.post('user/editBank', params);//绑定银行卡
	let editWechat = (params) => vm.$u.post('user/editWechat', params);//修改微信
	let getBaoMingList = (params) => vm.$u.post('task/getBaoMingList', params);//我的报名
	let cardgetBaoMingList = (params) => vm.$u.post('card/getBaoMingList', params);//我的报名-名片
	let doFenhongTask = (params) => vm.$u.post('user/doFenhongTask', params);//领取裂变奖励

	let sgetBaoMing = (params) => vm.$u.post('task/getBaoMing', params);//首页报名列表
	let getMyTeamContent = (params) => vm.$u.post('user/getMyTeamContent', params);//我的团队富文本
	let getTaskListByChou = (params) => vm.$u.post('task/getTaskListByChou', params);//获取抽成列表
	let setTaskBfb = (params) => vm.$u.post('task/setTaskBfb', params);//设置下级抽佣比例
	let setTaskShouyi = (params) => vm.$u.post('task/setTaskShouyi', params);//设置任务下级佣金
	let getPayList = (params) => vm.$u.post('index/getPayList', params);//支付列表
	let payWechat = (params) => vm.$u.post('pay/payWechat', params);//微信支付
	let editShiming = (params) => vm.$u.post('user/editShiming', params);//实名认证
	let payAlipay = (params) => vm.$u.post('pay/payAlipay', params);//支付宝支付
	// 我的页面模块接口结束
	let addWithdraw = (params) => vm.$u.post('user/addWithdraw', params);//申请提现
	let xuangetOrderList = (params) => vm.$u.post('main/getOrderList', params);//悬赏主订单审核列表接口
	let xuaneditOrderStatus = (params) => vm.$u.post('main/editOrderStatus', params);//悬赏主订单审核
	let vipaddOrder = (params) => vm.$u.post('vip/addOrder', params);//会员下单
	let vipgetPayList = (params) => vm.$u.post('vip/getPayList', params);//会员支付列表
	let payWechatByVip = (params) => vm.$u.post('pay/payWechatByVip', params);//会员支付列表-微信
	let payAlipayByVip = (params) => vm.$u.post('pay/payAlipayByVip', params);//会员支付列表-支付宝
	let getQrcode = (params) => vm.$u.post('task/getQrcode', params);//任务吗
	let getListByMt = (params) => vm.$u.post('lechuang/getListByMt', params);//美团明细
	let getListByDd = (params) => vm.$u.post('lechuang/getListByDd', params);//滴滴明细
	let getEdit = (params) => vm.$u.post('main/getEdit', params);//编辑回显
	let doEdit = (params) => vm.$u.post('main/doEdit', params);//编辑
	let profile = (params) => vm.$u.post('user/profile', params);//修改信息
	let getShanyou = (params) => vm.$u.post('user/getShanyou', params);//闪游接口
	let getTaskListByShanyou = (params) => vm.$u.post('task/getTaskListByShanyou', params);//闪游列表
	
	let quangetListPage = (params) => vm.$u.post('quan/getListPage', params);//项目圈列表
	let quangetTopList = (params) => vm.$u.post('quan/getTopList', params);//项目圈列表-置顶数据
	let getSubTop = (params) => vm.$u.post('quan/getSubTop', params);//项目圈列表-超级置顶数据
	let doSup = (params) => vm.$u.post('main/doSup', params);//项目圈列表-超级置顶-新接口
	
	let taskgetTopList = (params) => vm.$u.post('task/getTopList', params);//悬赏列表-置顶
	let taskgetListPage = (params) => vm.$u.post('task/getListPage', params);//悬赏列表
	let getVersion = (params) => vm.$u.post('index/getVersion', params);//版本更新
	let getActivityList = (params) => vm.$u.post('activity/getActivityList', params);//活动中心
	let getYaoInfo = (params) => vm.$u.post('activity/getYaoInfo', params);//活动信息
	let doJiang = (params) => vm.$u.post('activity/doJiang', params);//活动领取
	

	// 首页接口
	let homelists = (params) => vm.$u.post('qctask/lists', params);//首页列表
	let homelistsdetail = (params) => vm.$u.post('qctask/detail', params);//首页详情
	let homeapply = (params) => vm.$u.post('qctask/apply', params);//首页详情申请参数
	let homebaoming = (params) => vm.$u.post('qctask/baoming', params);//首页详情报名
	let homegetBaoming= (params) => vm.$u.post('qctask/getBaoming', params);//首页报名列表
	let getSubTemplate= (params) => vm.$u.post('qctask/getSubTemplate', params);//首页报名提交参数
	let getaddOrder= (params) => vm.$u.post('qctask/addOrder', params);//首页报名提交订单
	let homegetOrderList= (params) => vm.$u.post('qctask/getOrderList', params);//首页报名订单列表
	let thirdLogin= (params) => vm.$u.post('user/thirdLogin', params);//授权登录
	let delbind= (params) => vm.$u.post('user/delbind', params);//授权登录-解绑
	let voicedata= (params) => vm.$u.post('voice/getData', params);//广告
	let addShare= (params) => vm.$u.post('user/addShare', params);//分享操作
	let getListByFree= (params) => vm.$u.post('prop/getListByFree', params);//免费领取福利
	let receiveProp= (params) => vm.$u.post('prop/receiveProp', params);//免费领取福利-领取
	let getListByShop= (params) => vm.$u.post('prop/getListByShop', params);//道具卡
	let addOrderzhi= (params) => vm.$u.post('prop/addOrder', params);//创建订单
	let payWechatByProp= (params) => vm.$u.post('pay/payWechatByProp', params);//获取支付参数
	let daogetLog= (params) => vm.$u.post('prop/getLog', params);//获取记录
	let getUserShowNums= (params) => vm.$u.post('quan/getUserShowNums', params);//查看是否有查看卡
	let getLianxi= (params) => vm.$u.post('quan/getLianxi', params);//查看联系方式
	let register_bind= (params) => vm.$u.post('user/register_bind', params);//绑定手机号
	let quangetQuanInfo= (params) => vm.$u.post('quan/getQuanInfo', params);//获取朋友圈信息
	let getTaskIdById= (params) => vm.$u.post('card/getTaskIdById', params);//名片ID
	let payByProp= (params) => vm.$u.post('pay/payByProp', params);//道具支付
	let receivePropByGg= (params) => vm.$u.post('prop/receivePropByGg', params);//看广告领取
	let getTanIndex= (params) => vm.$u.post('index/getTanIndex', params);//首页弹窗
	let getTanQuan= (params) => vm.$u.post('index/getTanQuan', params);//项目弹窗
	vm.$u.api = {
		smsSend,
		login,
		getBanner,
		getNotice,
		getNoticeInfo,
		getMenu,
		getListParams,
		getLists,
		getDetail,
		configinit,
		getApplyParams,
		doApply,
		quangetBanner,
		quangetListParams,
		quangetLists,
		quangetDetail,
		quangetApplyParams,
		quandoApply,
		cardgetListParams,
		mobilelogin,
		register,
		usergetData,
		cardgetCate,
		cardadd,
		getMoneyLog,
		getAccountList,
		tigetContent,
		getWithdrawList,
		getMyInvite,
		getMyTeamData,
		getMyTeamList,
		getRankList,
		getFankuiList,
		addFankui,
		getTuiguangList,
		getFengHongTask,
		qdgetInti,
		payActivity,
		qdgetLog,
		getPayLog,
		getOrderList,
		getOrderByTeam,
		getContent,
		getOrderImage,
		getVipList,
		getBaoMing,
		getCateList,
		getCartInfo,
		getTaskId,
		doTask,
		addOrder,
		getShopInfo,
		maingetMenu,
		maingetList,
		doAdd,
		doRefresh,
		doTop,
		doDown,
		doUp,
		doRefund,
		activitymsg,
		baoaddOrder,
		getOrderImageParams,
		quangetCate,
		quangetPostion,
		quanadd,
		getApplySiteList,
		applySite,
		editNickname,
		resetpwd,
		editZfb,
		editBank,
		editWechat,
		getBaoMingList,
		doFenhongTask,
		cardgetInit,
		quangetInit,
		taskgetInit,
		taskadd,
		sgetBaoMing,
		getMyTeamContent,
		getTaskListByChou,
		setTaskBfb,
		setTaskShouyi,
		getPayList,
		payWechat,
		editShiming,
		payAlipay,
		taskgetCate,
		addWithdraw,
		xuangetOrderList,
		xuaneditOrderStatus,
		vipaddOrder,
		vipgetPayList,
		payWechatByVip,
		payAlipayByVip,
		getListsIndex,
		getQrcode,
		getListByMt,
		getListByDd,
		getEdit,
		doEdit,
		sign,
		cardgetBaoMingList,
		profile,
		getShanyou,
		getTaskListByShanyou,
		quangetListPage,
		quangetTopList,
		taskgetTopList,
		taskgetListPage,
		getVersion,
		getActivityList,
		getYaoInfo,
		doJiang,
		homelists,
		homelistsdetail,
		homeapply,
		homebaoming,
		homegetBaoming,
		getSubTemplate,
		getaddOrder,
		homegetOrderList,
		thirdLogin,
		delbind,
		voicedata,
		addShare,
		getListByFree,
		receiveProp,
		getListByShop,
		addOrderzhi,
		payWechatByProp,
		daogetLog,
		getUserShowNums,
		getLianxi,
		getSubTop,
		register_bind,
		quangetQuanInfo,
		getTaskIdById,
		payByProp,
		receivePropByGg,
		doSup,
		getTanIndex,
		getTanQuan
	};
}
export default {
	install
}
// async getuserinfo(){
	// let res = await this.$u.api.userinfo({
	// 	a:a
	// });
// }
// if(res.code == 200){
// 	this.$u.toast("提货成功");
// 	this.goodList = []
// 	this.getlist();
// }else{
// 	this.$u.toast("失败");
// }
//:src="ossThree(item.bigimage)"

// getClear(){
// 	this.list = []
// 	this.page = 1,
// 	this.status= "loadmore"
// 	this.getList()
// }
// userid:uni.getStorageSync('userid')
// :src="ossThree('/ui/twobg.png')"
// list: [],
// page: 1,
// limit: 10,
// last_page: 1,
// status: "loadmore",

{/* <u-loadmore :status="status" @loadmore="loadmore" /> */}

// async getList(){//列表数据
// 	let res = await this.$u.api.userlog({
// 		limit:this.limit,
// 		  page:this.page,
// 		field:'balance'
// 	});
// this.last_page = res.lastpage;
// let list = res.list;
// this.list = this.page == 1 ? list : [...this.list, ...list];	
// if(this.page >= this.last_page){
// 	this.status = 'nomore';
// }
	
// },
// loadmore() {
// 	let page = this.page;
// 	if (this.status == 'loadmore') {
// 		this.page++;
// 		this.getList();
// 	}
// },

// onReachBottom: function () {
// 	this.loadmore();
// },

// configinfo:uni.getStorageSync('configinfo')

// this.navrouter("/pages/TPage/Xieyi?type=yonghuxieyi");
//  type 1输入框 2图片选择 3地区选择 4时间选择